'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var component_1 = require('../common/component')
component_1.VantComponent({
  relation: {
    name: 'row',
    type: 'ancestor',
    current: 'col'
  },
  props: {
    span: Number,
    offset: Number
  },
  data: {
    viewStyle: ''
  },
  methods: {
    setGutter: function(gutter) {
      var padding = gutter / 2 + 'px'
      var viewStyle = gutter
        ? 'padding-left: ' + padding + '; padding-right: ' + padding + ';'
        : ''
      if (viewStyle !== this.data.viewStyle) {
        this.setData({ viewStyle: viewStyle })
      }
    }
  }
})
